package com.ruoyi.shopping.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author chengliang
 * @date 2022/7/26
 **/
@Data
public class CouponsVo {
    private Long id;//主键
    private Long couponId;//优惠券ID
    private String couponName;//优惠券名称
    private Long memberId;//用户ID
    private BigDecimal money;//优惠券金额
    private BigDecimal minPrice;//最低可用金额
    private String belongType;//优惠券归属
    private String primaryKey;//可用范围
    private String newUserState;//是否新人券
    private String couponType;//优惠券类型
    private String useState;//使用状态
    private Long storeId; //门店ID
    private String storeName;//门店名称
    private String overdueState;//过期状态
    private Date useTime;//使用时间
    private Date useStartTime;//可用开始时间
    private Date useEndTime;//可用结束时间
    private String canUseState;//可用状态
    private String modelType;//优惠券分属模块
    private Map<String, Object> params;


    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }
}
